package com.freecloud.bitorrent.common.exceptions;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: maomao
 * @Date: 2022/7/23 5:12 PM
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseException extends RuntimeException {
    /**
     * 错误码
     */
    private int code;
    /**
     * 错误信息
     */
    private String message;
    /**
     * 错误栈
     */
    private Throwable cause;

    public BaseException(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
